<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <h:head>
        <title>Pastel - Pedidos</title>
    </h:head>
    
    <h:body>
        <h:form>
            <div>Cliente: <h:inputText value="#{bean.nome}"></h:inputText></div><br></br>
            <div>Tipo:
                <h:selectOneRadio value="#{bean.escolha}">
                    <f:selectItems value="#{bean.tipo}"/>
                </h:selectOneRadio>
            </div><br></br>
            <div>Você conheceu o pastel:
                <h:selectManyCheckbox value="#{bean.escolhaindicacao}" layout="pageDirection">
                    <f:selectItems value="#{bean.indicacao}"/>
                </h:selectManyCheckbox>
            </div><br></br>
            <div>Sabor<br></br>
                <h:selectManyListbox value="#{bean.escolhasabores}">
                    <f:selectItems value="#{bean.sabores}"/>
                </h:selectManyListbox>
            </div><br></br>
            <div><h:commandButton value="OK"/>
                <h:commandButton value="Limpar" action="#{bean.Limpar}"/></div>

            <div>
                Nome: #{bean.nome}<br></br>
                Tipo: #{bean.escolha}<br></br>
                Você conheceu o pastel: #{bean.escolhaindicacao}<br></br>
                Sabor: #{bean.escolhasabores}<br></br>
            </div>
            <br></br><br></br><br></br>
            <div>
                <h:dataTable var="lista" value="#{lista.}">
                    <h:column>
                    <f:facet name="header">
                        Sabores
                    </f:facet>
                        #{lista.sabores}
                    </h:column>

                    <h:column>
                    <f:facet name="header">
                        Preços
                    </f:facet>
                        #{lista.preco}
                    </h:column>
                </h:dataTable>
            </div>

        </h:form>
    </h:body>
</html>

